Fix 64-bit build with a PRIu64.
authorEwan Mellor <ewan@xensource.com>
Fri, 15 Dec 2006 01:42:31 +0000 (01:42 +0000)
committerEwan Mellor <ewan@xensource.com>
Fri, 15 Dec 2006 01:42:31 +0000 (01:42 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/blktap/drivers/block-qcow.c

index 04a1a16e7818037460815974d6c225fb41e2c182..48814479d654a45999405d335701bad80acc996b 100644 (file)
@@ -1329,7 +1329,7 @@ int qcow_create(const char *filename, uint64_t total_size,
                /*Filesize is length +  l1_size * (1 << s->l2_bits) + (size*512)*/
                total_length = length + (l1_size * (1 << 9)) + (size * 512);
                qtruncate(fd, total_length, 0);
-               printf("File truncated to length %llu\n",total_length);
+               printf("File truncated to length %"PRIu64"\n",total_length);
        }
        exthdr.flags = cpu_to_be32(flags);